package com.suyafei.service;

import com.suyafei.model.AddressDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suyafei.request.AddressAddRequest;
import com.suyafei.vo.AddressVO;

import java.util.List;

/**
 * <p>
 * 电商-公司收发货地址表 服务类
 * </p>
 *
 * @author suyafei
 * @since 2021-01-28
 */
public interface AddressService{

    /**
     * 通过ID查找地址
     * @param id
     * @return
     */
    AddressVO detail(Long id);
    /**
     * 新增守护地址
     * @param addressAddRequest
     */
    void add(AddressAddRequest addressAddRequest);

    /**
     * 根据id删除地址
     * @param addressId
     * @return
     */
    int del(long addressId);

    /**
     * 查询用户所有的收货地址
     * @return
     */
    List<AddressVO> listUserAllAddress();
}
